
package com.sasis.dao;

import java.util.List;

import com.sasis.dao.Dao;
import com.sasis.model.City;

public interface CityDao extends Dao {

    /**
     * Retrieves all of the citys
     */
    public List getCitys(City city);

    public List selectCitys(final City city) ;
    /**
     * Gets city's information based on primary key. An
     * ObjectRetrievalFailureException Runtime Exception is thrown if 
     * nothing is found.
     * 
     * @param id the city's id
     * @return city populated city object
     */
    public City getCity(final Integer id);

    /**
     * Saves a city's information
     * @param city the object to be saved
     */    
    public void saveCity(City city);

    /**
     * Removes a city from the database by id
     * @param id the city's id
     */
    public void removeCity(final City city);
}

